using System;
using System.Collections.Generic;
//保存数据库与c# 的映射关系
public static  class DbCodeMapper{
    private static Dictionary<string,string> dic;
  
    public static void init(){
        dic=new Dictionary<string, string>();
        dic.Add("int","int");
        dic.Add("varchar","string");
        dic.Add("Menory","decimal");
    }
    public static string getMapper(string key){
        if (dic==null)init();
        if(dic.ContainsKey(key))
            return dic[key];
        return "string";
    }
}